package com.yuanzheng.service.impl;

import com.yuanzheng.mapper.UserMapper;
import com.yuanzheng.pojo.User;
import com.yuanzheng.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 查询用户信息
 *
 * @author yuanzheng
 * @date 2020/4/15-22:11
 */
@Service
public class UserServiceImpl implements IUserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User queryUserByName(String name) {
        return userMapper.queryUserByName(name);
    }
}
